#pragma once
#include<iostream>
using namespace std;
class Transport {
public:
	virtual ~Transport() {};
	virtual string Deliver()const = 0;
};
class Ship :public Transport {
public:
	string Deliver()const override {
		string result = "Delivered by Ship.";
		return result;
	}
};
class Truck :public Transport {
public:
	string Deliver()const override {
		string result = "Delivered by Truck";
		return result;
	}
};